* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.chat-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 220px);
}

.chat-history {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    margin-bottom: 20px;
    max-width: 80%;
}

.user-message {
    margin-left: auto;
}

.bot-message {
    margin-right: auto;
}

.message-content {
    padding: 12px 18px;
    border-radius: 18px;
    position: relative;
}

.user-message .message-content {
    background-color: #3498db;
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    background-color: #ecf0f1;
    border-bottom-left-radius: 4px;
}

.message-meta {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 5px;
    text-align: right;
}

.bot-message .message-meta {
    text-align: left;
}

.input-area {
    display: flex;
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

#question-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: all 0.3s;
}

#question-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

button {
    margin-left: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background-color: #3498db;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#export-btn {
    background-color: #2ecc71;
}

#export-btn:hover {
    background-color: #27ae60;
}

.response-section {
    margin-bottom: 15px;
}

.response-section h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #2c3e50;
}

.response-section p {
    color: #34495e;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .message {
        max-width: 90%;
    }
}